package mate.events
{
	import classespinkpony.Address;
	import classespinkpony.Blog;
	import classespinkpony.User;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;

	public class ControlPanelEvent extends Event
	{
		
		public static const UPDATEPASSWORD:String = "updatePassword";
		public static const WRITENEWPASSWORD:String = "writeNewPassword";
		public static const DELETEPROFILE:String = "deleteProfile";
		public static const GOTOBLOGS:String = "goToBlogs";
		public static const GOTOEDITBLOG:String ="goToEditBlog";
		public static const GOBACKTOCONTROLPANEL:String = "goBackToControlPanel";
		public static const SAVEEDITBLOG:String = "saveEditBlog";
		public static const NEWBLOG:String = "newBlog";
		public static const SAVEBLOG:String = "saveBlog";
		public static const DELETEBLOG:String = "deleteBlog";
		public static const DELETEPRACTICE:String = "deletePractice";
		public static const SAVEPRACTICEID:String = "savePracticeId";
		public static const GOBACKTOBLOG:String = "goBackToBlog";
		public static const GOTOCHANGEINVOICADDRESS = "goToChangeInvoiceAddress";
		public static const UPDATEINVOICEADDRESS = "updateInvoiceAddress";
		
		private var _user:User
		private var _blogs:ArrayCollection;
		private var _blog:Blog;
		private var _parameter:Number;
		private var _userId:Number;
		private var _address:Address;
		
		
		[Bindable]
		public function get address():Address
		{
			return _address;
		}

		public function set address(value:Address):void
		{
			_address = value;
		}

		[Bindable]
		public function get userId():Number
		{
			return _userId;
		}

		public function set userId(value:Number):void
		{
			_userId = value;
		}

		[Bindable]
		public function get user():User
		{
			return _user;
		}
		
		public function set user(value:User):void
		{
			_user = value;
		}

		[Bindable]
		public function get blogs():ArrayCollection
		{
			return _blogs;
		}

		public function set blogs(value:ArrayCollection):void
		{
			_blogs = value;
		}

		[Bindable]
		public function get blog():Blog
		{
			return _blog;
		}

		public function set blog(value:Blog):void
		{
			_blog = value;
		}

		[Bindable]
		public function get parameter():Number
		{
			return _parameter;
		}

		public function set parameter(value:Number):void
		{
			_parameter = value;
			trace("invoicidevent " + parameter);
		}
		
		

		
		public function ControlPanelEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}

		

	}
}